import request from '@/utils/request'

// 查询首页列数据列表
export function listHome_list(query) {
  return request({
    url: '/basic/home_list/list',
    method: 'get',
    params: query
  })
}

// 查询首页列数据详细
export function getHome_list(id) {
  return request({
    url: '/basic/home_list/' + id,
    method: 'get'
  })
}

export function styleList(query) {
  return request({
    url: '/basic/home_list/styleList',
    method: 'get',
    params: query
  })
}

// 首页列资源
export function updateRes(data) {
  return request({
    url: '/basic/home_list/updateRes',
    method: 'post',
    data: data
  })
}


// 新增首页列数据
export function addHome_list(data) {
  return request({
    url: '/basic/home_list',
    method: 'post',
    data: data
  })
}

// 修改首页列数据
export function updateHome_list(data) {
  return request({
    url: '/basic/home_list',
    method: 'put',
    data: data
  })
}

// 删除首页列数据
export function delHome_list(id) {
  return request({
    url: '/basic/home_list/' + id,
    method: 'delete'
  })
}
